<template>
	<div>
		<div class="page-header col-xs-offset-2 col-xs-8">
			<h2>Vue路由测试</h2>
		</div>
		<!-- 导航区域 -->
		<div class="col-xs-2 col-xs-offset-2">
			<!-- 在原生html中，我们靠a标签实现：页面切换 -->
			<!-- <a class="list-group-item active" href="./about.html">About</a> -->
			<!-- <a class="list-group-item" href="./home.html">Home</a> -->

			<!-- 在Vue中，我们靠router-link标签实现：点击导航修改路径 -->
			<router-link class="list-group-item" to="/about">About</router-link>
			<router-link class="list-group-item" to="/home">Home</router-link>

		</div>
		<!-- 展示区 -->
		<div class="col-xs-6 panel-body">
			<!-- 指定展示的位置 -->
			<router-view/>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'App',
		mounted(){
			console.log('App',this)
		}
	}
</script>